package com.yaoxuguang.concurrence.thread_state.block;

import com.sun.media.sound.SoftTuning;

/**
 * @author yaoxuguang
 * @Title: yao-interview
 * @Package com.yaoxuguang.concurrence.thread_state.block
 * @Description: TODO
 * @date 2018年12月26日11:31
 */
public class Run {
    public static void main(String[] args) {
        try {
            MyThread1 t1 = new MyThread1();
            t1.setName("t1");
            t1.start();
            Thread.sleep(1000);
            MyThread2 t2 = new MyThread2();
            t2.setName("t2");
            t2.start();
            Thread.sleep(1000);
            System.out.println("main方法中t2的状态=="+t2.getState());
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
